package cn.wolfcode.luowowo.member.service;

import cn.wolfcode.luowowo.common.exception.LogicException;
import cn.wolfcode.luowowo.member.domain.UserInfo;

import java.util.List;

/**
 * 用户信息服务
 */
public interface IUserInfoService {


    /**
     * 查单个
     * @param id
     * @return
     */
    UserInfo get(long id);

    boolean checkPhone(String phone);

    void sendVerifyCode(String phone);

    void userRegist(String phone, String nickname, String password, String rpassword, String verifyCode)throws LogicException;

    UserInfo selectByPhoneAndPassword(String username, String password);

    List<UserInfo> list();

}
